<p style="text-align: right;" id="print-link"<a href="#Print" onclick="window.print(); return false;" title="Click here to print.">Cliquez ici pour imprimer.</a></p>

<div class="cvs view">
<h2><?php echo $cv['Cv']['title']; ?></h2>
    <div style="height: 120px;">
        <div style="float:left; width: 50%">
            <?php
                echo $users['User']['lastname'].' '.$users['User']['firstname'].'<br/>';
                echo $users['User']['address'].'<br/>';
                echo $users['User']['zipcode'].' '.$users['User']['city'].'<br/>';
                echo $users['User']['phone'].'<br/>';
                echo '<a href="mailto:'.$users['User']['email'].'">'.$users['User']['email'].'</a>'.'<br/>';
                echo 'Chargé de Placement : <a href="mailto:'.$charge['User']['email'].'">'.$charge['User']['email'].'</a>';
            ?>
            </div>
        <div style="float:right; width: 40%; text-align: right; padding-right: 30px;">
            <?php
                if(!empty ($cv['Cv']['photo'])) :
                    echo $html->image("/files/".$cv['Cv']['photo'], array('class' => 'photo', 'id'=>'photo'));
                endif;
            ?>
            </div>
<div clear="both" style="width:100%"></div>
    </div>
</div>
<div class="related">
	<h4 class="h4SM"><?php __('Mes langues');?></h4>
	<?php if (!empty($cv['Language'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Nom'); ?></th>
		<th><?php __('Niveau'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($cv['Language'] as $language):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td style="padding-right: 35px;"><?php echo $language['label'];?></td>
                        <td><?php echo $language['level'];?></td>
			<!--<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'languages', 'action' => 'view', $language['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'languages', 'action' => 'edit', $language['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'languages', 'action' => 'delete', $language['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $language['id'])); ?>
			</td>-->
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

</div>
<div class="related">
	<h4 class="h4SM"><?php __('Mes expériences professionelles');?></h4>
	<?php if (!empty($cv['ProfessionalRecord'])):?>
        <table cellpadding = "0" cellspacing = "0" width="100%">
	<tr>
		<th><?php __('Entreprise'); ?></th>
		<th><?php __('Titre'); ?></th>
		<th><?php __('Type'); ?></th>
		<th><?php __('Début'); ?></th>
		<th><?php __('Fin'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($cv['ProfessionalRecord'] as $professionalRecord):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $professionalRecord['job'];?></td>
			<td><?php echo $professionalRecord['company'];?></td>
			<td><?php echo $professionalRecord['kind'];?></td>
			<td><?php echo $professionalRecord['started_at'];?></td>
			<td><?php echo $professionalRecord['ended_at'];?></td>
			<!--<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'professional_records', 'action' => 'view', $professionalRecord['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'professional_records', 'action' => 'edit', $professionalRecord['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'professional_records', 'action' => 'delete', $professionalRecord['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $professionalRecord['id'])); ?>
			</td>-->
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

</div>
<div class="related">
	<h4 class="h4SM"><?php __('Mes diplomes');?></h4>
	<?php if (!empty($cv['Qualification'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<?php
		$i = 0;
		foreach ($cv['Qualification'] as $qualification):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td class="labelQual"><?php echo $qualification['label'];?></td>
			<td style="padding-right: 35px;">du <?php echo $qualification['started_at'];?></td>
			<td>au <?php echo $qualification['ended_at'];?></td>
			<!--<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'qualifications', 'action' => 'view', $qualification['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'qualifications', 'action' => 'edit', $qualification['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'qualifications', 'action' => 'delete', $qualification['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $qualification['id'])); ?>
			</td>-->
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

</div>
<div class="related">
	<h4 class="h4SM"><?php __('Mes compétences');?></h4>
	<?php if (!empty($cv['Skill'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<?php
		$i = 0;
		foreach ($cv['Skill'] as $skill):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $skill['label'];?></td>
			<!--<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'skills', 'action' => 'view', $skill['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'skills', 'action' => 'edit', $skill['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'skills', 'action' => 'delete', $skill['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $skill['id'])); ?>
			</td>-->
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
</div>
<div class="related">
    <h4 class="h4SM"><?php __('Centre d\'intéret'); ?></h4>
    <div>
            <?php echo $cv['Cv']['interests']; ?>
    </div>
</div>

<div class="related">
	<h4 class="h4SM"><?php __('Ce CV fait partie des catégories suivantes :');?></h4>
	<?php if (!empty($cv['Category'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<?php
		$i = 0;
		foreach ($cv['Category'] as $category):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $category['label'];?></td>
			<!--<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'categories', 'action' => 'view', $category['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'categories', 'action' => 'edit', $category['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'categories', 'action' => 'delete', $category['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $category['id'])); ?>
			</td>-->
		</tr>
	<?php endforeach; ?>
                
	</table>
<?php endif; ?>
        


</div>
